<%template _header%>
<%namespace YouHP.Model%>
<!--header end-->
<script type="text/javascript" src="/support/dnt/calendar.js"></script>
<!--TheCurrent start-->
<div id="foruminfo">
	<div class="User">
		<h2><a href="{Config.WebsiteUrl}/Index.aspx" class="home">{Config.WebsiteTitle}</a>&nbsp;&gt;&nbsp;
			  <a href="{Config.WebsiteUrl}/Member/Manage.aspx">用户中心</a>&nbsp;&gt;&nbsp;
			  <strong>编辑个人档案</strong></h2>	</div>
	<div class="forumstats">
		<div id="search">
				<%template _quicksearch%>
		</div>
	</div>
</div>
<!--TheCurrent end-->

<!--主体-->
<div class="controlpannel">
   <%template _memmenu%>
	<div class="pannelcontent">
		<div class="pcontent">
			<div class="panneldetail">
				<%template _membasemenu%>	
				<div class="pannelbody">
					<div class="pannellist">
					<%if ErrorCount==0%>
						<%if IsPost%>
							<%template _msgbox%>
						<%else%>
						<form action="" method="post" ID="Form1">
							
							<label for="username">真实姓名:</label>
							  <input name="username" type="text" id="username" value="{User.UserName}" class="colorblue" 
							        onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" size="30" 
							        readonly="true" />
						  <br />
							
							<label for="email">Email:</label>
							<input type="text" id="email" value="{User.Email}" size="30" readonly="true"
							    class="colorblue" onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" /> 
						  <br />
						  
 						  <div style="line-height:180%;">
						    <label for="Sex">性别:</label>
							  <input type="radio" name="Sex" value="1"  class="radioinput" 
							  <%if {User.Sex}==1%>
							     checked="checked"
							  <%/if%>
							     ID="Radio1"/>
							     男
							  <input type="radio" name="Sex" value="2"  class="radioinput" 
							  <%if {User.Sex}==2%>
							     checked="checked"
							  <%/if%>
							     ID="Radio2"/>
							     女
							  <input name="Sex" type="radio" value="0"   class="radioinput" 
							  <%if {User.Sex}==0%>
							     checked="checked"
							  <%/if%>
							     ID="Radio3"/>
							     保密 
						  </div>
						  <br style="height:1px;line-height:5px;"/>
						  
						  <label for="bday">生日:</label>
						  <input type="text" name="birthday" id="myCalendar" value="{User.Birthday.ToString("yyyy-MM-dd")}" style="cursor:default" class="colorblue" onclick="return showCalendar('myCalendar', 'y-mm-dd');">
						  
						  
						  
						<!--  <input name="birthday" type="text" id="bday" size="30" value="{User.Birthday}" 
						     style="cursor:default" class="colorblue" >-->
						  <br />

						  
						  <label for="location">地址:</label>
						  <%template _district%>
						  <br />
						  
						  <label for="zip">邮政编码:</label>
						  <input name="zip" type="text" id="location" 
						     class="colorblue" onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" 
						     value="{User.ZipCode}" size="30" />
						  <br />
							
						  
						  <label for="mobile">移动电话号码:</label>
							  <input name="mobile" type="text" id="mobile" value="{User.MobilePhone}" 
							  class="colorblue" onfocus="this.className='colorfocus';" 
							  onblur="this.className='colorblue';" size="30" />
						  <br />
						  
						  <label for="phone">固定电话号码:</label>
							  <input name="phone" type="text" id="phone" value="{User.Telephone}" 
							  class="colorblue" onfocus="this.className='colorfocus';" 
							  onblur="this.className='colorblue';" size="30" />
						  <br />
						  
						  <label for="interest">兴趣爱好:</label>
						  <textarea name="interest" cols="36" rows="6" id="interest" class="colorblue" 
						  	onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" 
						  	style="width:80%;">{User.Interests}</textarea>
						  <br />
						
						  <label for="description">自我介绍:</label>
						  <textarea name="description" cols="36" rows="6" id="description" class="colorblue" 
						  	onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" 
						  	style="width:80%;">{User.Description}</textarea>
						  <br />
						
						  <label for="Submit">&nbsp;</label>
						  <input type="submit" name="Submit" value="确定" class="sbutton" 
						    onclick="if (document.getElementById('bio').value.length > 500) {alert('自我介绍长度最大为500字'); return false;}"
						    ID="Submit1"/>
						    
						</form>
						
						<%/if%>
						</div>
						
					<%else%>
					
						<%template _memerrmsgbox%>
						
					<%/if%>
					
			  </div>
			</div>
		</div>
	</div>
</div>
<!--主体-->
</div>
<%template _copyright%>
<%template _footer%>
